/**
 * @filename:CustomerServiceImpl 2021-11-09 01:40:36
 * @project com/lwl/blue  V1.0
 * Copyright(c) 2018 <a href=mailto:lanwenliang@yidianlife.com>蓝文良</a> Co. Ltd. 
 * All right reserved. 
 */
package com.lwl.blue.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lwl.blue.commont.base.JsonResult;
import com.lwl.blue.commont.base.PageParam;
import com.lwl.blue.dao.CustomerDao;
import com.lwl.blue.dao.ItemDao;
import com.lwl.blue.entity.Customer;
import com.lwl.blue.entity.Item;
import com.lwl.blue.service.CustomerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**   
 * <p>自定义serviceImpl写在这里</p>
 * 
 * <p>说明： 客人服务实现层</P>
 * @version: V1.0
 * @author: <a href=mailto:lanwenliang@yidianlife.com>蓝文良</a>
 * 
 */
@Service
public class CustomerServiceImpl  extends ServiceImpl<CustomerDao, Customer> implements CustomerService  {
    @Resource
    private CustomerDao customerDao;
    @Override
    public JsonResult<Page<Customer>> pages(PageParam<Customer> pageParam) {
        Page<Customer> page = new Page<>(pageParam.getPageNum(), pageParam.getPageSize());
        return new JsonResult<Page<Customer>>().success(customerDao.pages(page, pageParam.getParam()));
    }
}